


[System.Serializable]
public abstract class BasicResIndexInfo : _AALBasicLoadResIndexInfo
{
    public object Clone()
    {
        return MemberwiseClone();
    }

    public static bool IsEqual(BasicResIndexInfo _a1, BasicResIndexInfo _a2)
    {
        if (_a1 == _a2)
            return true;
        if (_a1 != null && _a2 != null)
            return _a1.mainId == _a2.mainId && _a1.subId == _a2.subId;
        return false;
    }
}

public static class ResIndexExtension
{
    /// <summary>
    /// 配置数据是否有效，只要有一个>0就合法
    /// </summary>
    public static bool isValid(this ALBasicResIndexInfo _this)
    {
        return _this != null && (_this.mainId > 0 || _this.subId > 0);
    }
}
